package com.hsgene.consumables.condition;

import com.hsgene.common.util.support.LimitHelper;
import org.apache.commons.lang.StringUtils;

import java.util.Date;

/**
 * @desc: 耗材审核列表查询条件
 * @author: 江承良
 * @date: 2018/9/27 10:38
 */
public class ApplyCondition {

    /**
     * 申领编号
     */
    private String applyNo;

    /**
     * 省份
     */
    private String provice;

    /**
     * 地服名字
     */
    private String groundServantName;

    /**
     * 地服电话
     */
    private String groundServantPhone;

    /**
     * 开始时间
     */
    private String beginTime;

    /**
     * 结束时间
     */
    private String endTime;

    /**
     * 申领状态
     */
    private Integer status;

    /**
     * 时间排序
     */
    private String timeSort;

    /**
     * 状态排序
     */
    private String statusSort;

    /**
     * 分页条件
     */
    private LimitHelper limitHelper;

    public String getApplyNo() {
        return applyNo;
    }

    public void setApplyNo(String applyNo) {
        this.applyNo = applyNo;
    }

    public String getProvice() {
        return provice;
    }

    public void setProvice(String provice) {
        this.provice = provice;
    }

    public String getGroundServantName() {
        return groundServantName;
    }

    public void setGroundServantName(String groundServantName) {
        this.groundServantName = groundServantName;
    }

    public String getGroundServantPhone() {
        return groundServantPhone;
    }

    public void setGroundServantPhone(String groundServantPhone) {
        this.groundServantPhone = groundServantPhone;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        if(StringUtils.isNotEmpty(beginTime)){
            beginTime = beginTime+" 00:00:00";
        }
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        if(StringUtils.isNotEmpty(endTime)){
            endTime = endTime+" 23:59:59";
        }
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getTimeSort() {
        return timeSort;
    }

    public void setTimeSort(String timeSort) {
        this.timeSort = timeSort;
    }

    public String getStatusSort() {
        return statusSort;
    }

    public void setStatusSort(String statusSort) {
        this.statusSort = statusSort;
    }

    public LimitHelper getLimitHelper() {
        return limitHelper;
    }

    public void setLimitHelper(LimitHelper limitHelper) {
        this.limitHelper = limitHelper;
    }
}
